package com.itheima.d09_abstract_use;

/**
 * 子类：狗类
 */
public class Dog extends  Animal{

    public Dog(String name) {
        super(name);
    }

    @Override
    public void cry() {
        System.out.println(getName() + "汪汪汪...");
    }
}
